<%@ page language="java" import="java.util.*,Class.Info" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML ">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Zym.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<title>南邮图书馆</title>
		<style type="text/css">
	.table{
	width: 80%;
    border-collapse: collapse;
    margin: auto;
	}
	.table td{
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: medium;
	}
	</style>
	<link rel="stylesheet" type="text/css" href="./style.css">
		
	</style>
  </head>
  
  <body>
   <div id="div1">
	<header>
		<h1 align="center">语文类</h1>
	</header>
	<article>
		<a href="./Zym.jsp">首页</a>
		<a href="./Yw.jsp">语文</a>
		<a href="./Sx.jsp">数学</a>
		<a href="./Ls.jsp">历史</a>
		<a href="./Kx.jsp">科学</a>
		<a href="./Dl.jsp">地理</a>
	</article>
	</div>
	<section id="section1">
		<div id="div2">
		<%
		Info info1=new Info(1,"语文课读解学","蒋成瑀",13,"2014-02-12");
		Info info2=new Info(2,"诗论","朱光潜",18,"2015-03-21");
		Info info3=new Info(3,"语文科课程论基础","王荣生",20,"2000-12-12");
		Info info4=new Info(4,"教学理论","施良方",25,"2011-05-20");
		ArrayList<Info> list=new ArrayList<Info>();
		list.add(info1);
		list.add(info2);
		list.add(info3);
		list.add(info4);
		%><br><br><br>
		<table class="table" border="1" cellpadding="0" cellspacing="0">
		<tr><td>序号</td><td>书名</td><td>作者</td><td>售价</td><td>出版日期</td></tr>
		<%
		for (Info info : list){
		%>
		<tr><td><%=info.getXh() %></td><td><%=info.getName() %></td><td><%=info.getZz() %></td><td><%=info.getSj() %></td><td><%=info.getCbsj() %></td></tr>
		<% 
		}
		%>
		</table>
		</div>
	</section>
	<footer>
		
	</footer>
  </body>
</html>
